SUBDIRS := $(shell find . -maxdepth 1 -type d ! -name ".")
OPLIST := all clean

.PHONY:$(OPLIST)

$(OPLIST):
	$(foreach N, $(SUBDIRS), \
		if [ -f ./$N/Makefile ]; then \
			make $@ -C $(N); \
		fi; \
	)